import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import router from './route/router.ts'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// import 'element-plus/lib/theme-chalk/index.css' // 报错
// import zhCn from 'element-plus/lib/locale/lang/zh-cn' // 报错
import zhCn from "element-plus/es/locale/lang/zh-cn";
import {createPinia} from 'pinia'

const pinia = createPinia()

const app = createApp(App)
app.use(router)
app.use(pinia)
// app.use(ElementPlus)
app.use(ElementPlus, { locale: zhCn });
app.mount('#app')
